<?php
$host="localhost";
$urname="root";
$pswd="root";
$db_name="e-report";
$con=mysql_connect("$host", "$urname", "$pswd");
//echo "connected <br>";

$db=mysql_select_db('e-report',$con) or die("not select db <br>");
//echo "db selected";
?>